﻿<%@ Page Language="C#" MasterPageFile="~/admin/MainPage/ItemMasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="admin_CategoryManage_Default" ValidateRequest="false" Title="Untitled Page" %>

<%@ Register Src="../Controls/uclCheckRefreshed.ascx" TagName="uclCheckRefreshed"
    TagPrefix="uc1" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <input type="hidden" runat="server" id="hdfnodeID" />
    <input type="hidden" runat="server" id="hdfparentID" />
    <input type="hidden" runat="server" id="hdforderID" />
    <input type="hidden" runat="server" id="hdfDes" />
    <uc1:uclCheckRefreshed ID="UclCheckRefreshed1" runat="server" />
    <dxrp:ASPxRoundPanel ID="ASPxRoundPanel1" ShowHeader="False" runat="server" Width="100%">
        <PanelCollection>
            <dxrp:PanelContent runat="server">
                <table style="height: 400px;">
                    <tr>
                        <td valign="top" style="width: 400px; vertical-align: top;">
                            <dxrp:ASPxRoundPanel ID="ASPxRoundPanel3" HeaderText="树形分类" runat="server" Width="100%"
                                Height="400px">
                                <PanelCollection>
                                    <dxrp:PanelContent runat="server">
                                        <asp:TreeView ID="treeNav" runat="server" ExpandDepth="1" >
                                        </asp:TreeView>
                                    </dxrp:PanelContent>
                                </PanelCollection>
                            </dxrp:ASPxRoundPanel>
                        </td>
                        <td valign="top">
                            <dxrp:ASPxRoundPanel ID="ASPxRoundPanel2" HeaderText="操作 -- 当前节点" runat="server"
                                Width="650px" Height="400px">
                                <PanelCollection>
                                    <dxrp:PanelContent runat="server">
                                        <table>
                                            <tr style="height: 40px;">
                                                <td>
                                                    <dxe:ASPxButton ID="btnAddOne" runat="server" Text="添加同级分类" OnClick="btnAddOne_Click">
                                                    </dxe:ASPxButton>
                                                </td>
                                                <td>
                                                    <dxe:ASPxButton ID="btnAddChild" runat="server" OnClick="btnAddChild_Click" Text="添加子级分类">
                                                    </dxe:ASPxButton>
                                                </td>
                                                <td>
                                                    <dxe:ASPxButton ID="btnUp" runat="server" OnClick="btnUp_Click" Text="上移">
                                                    </dxe:ASPxButton>
                                                </td>
                                                <td>
                                                    <dxe:ASPxButton ID="btnDown" runat="server" OnClick="btnDown_Click" Text="下移">
                                                    </dxe:ASPxButton>
                                                </td>
                                                <td>
                                                    <dxe:ASPxButton ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="删除">
                                                    </dxe:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    分类标题：
                                                </td>
                                                <td colspan="3">
                                                    <dxe:ASPxTextBox ID="txtTitle" runat="server" Width="170px">
                                                    </dxe:ASPxTextBox>
                                                </td>
                                                <td colspan="2">
                                                    <div id="ctl00_ContentPlaceHolder1_ASPxRoundPanel1_ASPxRoundPanel2_txtTitle_ITip"
                                                        style="width: 250px; display: inline;">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr style="height: 50px">
                                                <td>
                                                    分类编码：
                                                </td>
                                                <td colspan="3">
                                                    <dxe:ASPxTextBox ID="txtCode" runat="server" Width="170px">
                                                    </dxe:ASPxTextBox>
                                                </td>
                                                <td colspan="2">
                                                    <div id="ctl00_ContentPlaceHolder1_ASPxRoundPanel1_ASPxRoundPanel2_txtCode_ITip"
                                                        style="width: 250px; display: inline;">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td colspan="6">
                                                    <dxe:ASPxButton ID="btnSave" runat="server" AutoPostBack="False" Text="确 定" OnClick="ibtnAdd_Click"
                                                        Width="66px">
                                                        <ClientSideEvents Click="function validate(s, e) {      
                                             e.processOnServer =  jQuery.formValidator.PageIsValid('1'); 
                           }    " />
                                                    </dxe:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dxrp:PanelContent>
                                </PanelCollection>
                            </dxrp:ASPxRoundPanel>
                        </td>
                    </tr>
                </table>
            </dxrp:PanelContent>
        </PanelCollection>
    </dxrp:ASPxRoundPanel>
    <asp:DropDownList ID="DropDownList1" Visible="false" runat="server">
    </asp:DropDownList>

    <script language="javascript" type="text/javascript">
$(document).ready(function(){
$.formValidator.initConfig({onError:function(msg){alert(msg)}});
     $("#ctl00_ContentPlaceHolder1_ASPxRoundPanel1_ASPxRoundPanel2_txtTitle_I").formValidator({onshow:"请输入",onfocus:"不能为空",oncorrect:"合法"}).InputValidator({min:1,onerror:"不能为空,请确认"});
      $("#ctl00_ContentPlaceHolder1_ASPxRoundPanel1_ASPxRoundPanel2_txtCode_I").formValidator({onshow:"请输入类别名字母缩写",onfocus:"不能为空",oncorrect:"合法"}).InputValidator({min:1,onerror:"不能为空,请确认"});
});
    </script>

</asp:Content>
